home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
5
/
READER_1
/
FDS__1_0
/
CD_FD_1_
/
FORMATDR.C
< prev
next >
Wrap
Text File
|
1992-07-19
|
583b
|
36 lines
#include "FormatDriver.h"
ControlHandle
GetXControl(WindowPtr window, char name)
{
ControlHandle control;
Str255 title;
control = ((WindowPeek)window)->controlList;
while (control != NULL) {
GetCTitle(control,title);
if (title[0] == 1 && title[1] == name) {
return(control);
}
control = (**control).nextControl;
}
return NULL;
}
void
InfoAlert(short strID)
{
StringHandle strHdl;
strHdl = GetString(strID);
if (strHdl == NULL) {
SysBeep(0);
return;
}
ParamText(*strHdl,"","","");
ReleaseResource(strHdl);
InitCursor();
NoteAlert(ALRTinfo,NULL);
}